package org.krtrain.sports.team;

import java.util.ArrayList;
import java.util.List;

import org.krtrain.sports.player.Player;
import org.krtrain.sports.venue.Venue;
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
import org.kuali.rice.location.framework.state.StateEbo;

/**
 * @author Kuali Rice Team (rice.collab@kuali.org)
 */
public class Team extends PersistableBusinessObjectBase {
    private static final long serialVersionUID = 6555364882688697800L;

    private String name;
    private String nickName;
    private String coach;
    private int wins;
    private int losses;
    private int ranking;
    private String conference;
    private String stateCode;
    private String venueId;

    private StateEbo state;
    private Venue venue;

    private List<Player> players;

    public Team() {
        super();
        players = new ArrayList<Player>();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getCoach() {
        return coach;
    }

    public void setCoach(String coach) {
        this.coach = coach;
    }

    public int getWins() {
        return wins;
    }

    public void setWins(int wins) {
        this.wins = wins;
    }

    public int getLosses() {
        return losses;
    }

    public void setLosses(int losses) {
        this.losses = losses;
    }

    public int getRanking() {
        return ranking;
    }

    public void setRanking(int ranking) {
        this.ranking = ranking;
    }

    public String getConference() {
        return conference;
    }

    public void setConference(String conference) {
        this.conference = conference;
    }

    public String getStateCode() {
        return stateCode;
    }

    public void setStateCode(String stateCode) {
        this.stateCode = stateCode;
    }

    public String getVenueId() {
        return venueId;
    }

    public void setVenueId(String venueId) {
        this.venueId = venueId;
    }

    public StateEbo getState() {
        return state;
    }

    public void setState(StateEbo state) {
        this.state = state;
    }

    public Venue getVenue() {
        return venue;
    }

    public void setVenue(Venue venue) {
        this.venue = venue;
    }

    public List<Player> getPlayers() {
        return players;
    }

    public void setPlayers(List<Player> players) {
        this.players = players;
    }

    public String getRecord() {
      return wins + "-" + losses;
    }
}
